package cn.ncu.wechat.dao;

import cn.ncu.wechat.model.CouponRecord;
import cn.ncu.wechat.model.dto.CouponRecordDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
* @author 
* @description 针对表【coupon_record(优惠券领取记录表)】的数据库操作Mapper
* @createDate 2025-01-07 16:08:19
* @Entity cn.ncu.wechat.modle.CouponRecord
*/
public interface CouponRecordMapper extends BaseMapper<CouponRecord> {
    IPage<CouponRecordDTO> selectCouponRecordPage(Page<CouponRecord> page, 
            @Param("couponId") Long couponId, 
            @Param("status") Integer status);
    Page<CouponRecordDTO> selectCouponRecordPageByOpenId(Page<CouponRecordDTO>pageInfo,Integer id,Integer status);
}




